<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修饰符</title>
</head>
<body>
<div id="app">
    <!--失去焦点或回车时才会改变message-->
    <input type="text" v-model.lazy="message2">
    <p>{{message2}}</p>
    <input type="number" v-model="message">
    <p>{{typeof message}}</p>
</div>
<script src="https://unpkg.com/vue/dist/vue.min.js"></script>
<script>
    var app = new Vue({
        el: "#app",
        data:{
            message2: '',
            message: 124
        }
    })
</script>
</body>
</html>
